<html>
<head><meta charset="utf-8"><title>rust-analyzer is awesome! · general · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/index.html">general</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.20is.20awesome!.html">rust-analyzer is awesome!</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="197794454"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer%20is%20awesome%21/near/197794454" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.20is.20awesome!.html#197794454">(May 16 2020 at 12:54)</a>:</h4>
<p>I finally tried vscode + rust-analyzer on the rustc codebase and I am completely <em>blown away</em> by how well this works. After a bit of loading I am getting ctrl-click-to-definition, show-type/doc-on-hover, and with a bit of configuration now also format-on-save. Kudos to everyone involved! &lt;3</p>
<p>Is there documentation somewhere for the recommended settings when using this with rustc? So far I added llvm-project to the ignore list (so that it doesn't show up in Ctrl-P) and I added a <code>+nightly</code> argument to rustfmt. But maybe there is a way to make it use the bootstrap compiler (currently there's a "failure" in <code>librustc_index</code>, I think caused by using the wrong compiler).</p>



<a name="197795285"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer%20is%20awesome%21/near/197795285" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Léo Lanteri Thauvin <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.20is.20awesome!.html#197795285">(May 16 2020 at 13:16)</a>:</h4>
<p>I saw a discussion about using <code>rust-analyser</code> for rustc few days ago... I think you want to override the <code>cargo check</code> command with <code>./x.py check</code>, and override the formatter command with <code>./build/target/stage0/bin/rustfmt</code> or something alike.</p>



<a name="197795360"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer%20is%20awesome%21/near/197795360" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Léo Lanteri Thauvin <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.20is.20awesome!.html#197795360">(May 16 2020 at 13:18)</a>:</h4>
<p>See <a href="#narrow/stream/131828-t-compiler/topic/IDE/near/197315300">this conversation</a></p>



<a name="197797497"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer%20is%20awesome%21/near/197797497" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.20is.20awesome!.html#197797497">(May 16 2020 at 14:12)</a>:</h4>
<p>hm, setting the formatter like that lead to weird errors... "error[internal]: left behind trailing whitespace"</p>



<a name="197797504"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer%20is%20awesome%21/near/197797504" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.20is.20awesome!.html#197797504">(May 16 2020 at 14:13)</a>:</h4>
<p>oh that might be older messages (there's no time)</p>



<a name="197797505"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer%20is%20awesome%21/near/197797505" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.20is.20awesome!.html#197797505">(May 16 2020 at 14:13)</a>:</h4>
<p>the latest one is</p>
<div class="codehilite"><pre><span></span><code>[Error - 4:12:59 PM] Request textDocument/formatting failed.
  Message: No such file or directory (os error 2)
  Code: -32603
</code></pre></div>



<a name="197797515"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer%20is%20awesome%21/near/197797515" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.20is.20awesome!.html#197797515">(May 16 2020 at 14:13)</a>:</h4>
<p>oh d'oh I have to replace "target" by something</p>



<a name="197797576"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer%20is%20awesome%21/near/197797576" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.20is.20awesome!.html#197797576">(May 16 2020 at 14:14)</a>:</h4>
<p>hm still no luck though</p>



<a name="197798295"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer%20is%20awesome%21/near/197798295" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Charles Lew <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.20is.20awesome!.html#197798295">(May 16 2020 at 14:32)</a>:</h4>
<p>maybe try <code>./x.py fmt</code> as formatter command?</p>



<a name="197798381"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer%20is%20awesome%21/near/197798381" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.20is.20awesome!.html#197798381">(May 16 2020 at 14:34)</a>:</h4>
<p>that format the entire tree, not just a single crate/file</p>



<a name="197798382"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer%20is%20awesome%21/near/197798382" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.20is.20awesome!.html#197798382">(May 16 2020 at 14:34)</a>:</h4>
<p>so it takes a while</p>



<a name="197798399"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer%20is%20awesome%21/near/197798399" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.20is.20awesome!.html#197798399">(May 16 2020 at 14:35)</a>:</h4>
<p>I doubt that matches what format-on-save usually does</p>



<a name="197798465"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer%20is%20awesome%21/near/197798465" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.20is.20awesome!.html#197798465">(May 16 2020 at 14:36)</a>:</h4>
<p>so far I got this:</p>
<div class="codehilite"><pre><span></span><code>{
    &quot;editor.formatOnSave&quot;: true,
    &quot;rust-analyzer.checkOnSave.overrideCommand&quot;: [
        &quot;./x.py&quot;,
        &quot;check&quot;,
        &quot;--json-output&quot;
    ],
    &quot;rust-analyzer.rustfmt.extraArgs&quot;: [
        &quot;+nightly&quot;
    ],
    &quot;files.exclude&quot;: {
        &quot;**/llvm-project/**&quot;: true
    }
}
</code></pre></div>



<a name="197798552"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer%20is%20awesome%21/near/197798552" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.20is.20awesome!.html#197798552">(May 16 2020 at 14:38)</a>:</h4>
<p>Which rustdoc is invoked by <code>x.py fmt</code>? <code>build/x86_64-unknown-linux-gnu/stage0/bin/rustdoc</code>?</p>



<a name="197798663"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer%20is%20awesome%21/near/197798663" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.20is.20awesome!.html#197798663">(May 16 2020 at 14:41)</a>:</h4>
<p>yes</p>



<a name="197801049"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer%20is%20awesome%21/near/197801049" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.20is.20awesome!.html#197801049">(May 16 2020 at 15:33)</a>:</h4>
<p>Err, rustfmt, not rustdoc</p>



<a name="197801100"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer%20is%20awesome%21/near/197801100" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.20is.20awesome!.html#197801100">(May 16 2020 at 15:34)</a>:</h4>
<p>also yes</p>



<a name="197801103"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer%20is%20awesome%21/near/197801103" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.20is.20awesome!.html#197801103">(May 16 2020 at 15:34)</a>:</h4>
<p>I missed the rustdoc bit :)</p>



<a name="197801135"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer%20is%20awesome%21/near/197801135" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.20is.20awesome!.html#197801135">(May 16 2020 at 15:35)</a>:</h4>
<p>Hmm, r-a does not seem to find that</p>
<blockquote>
<p>[Error - 5:34:04 PM] Request textDocument/formatting failed.<br>
  Message: No such file or directory (os error 2)<br>
  Code: -32603</p>
</blockquote>



<a name="197801196"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer%20is%20awesome%21/near/197801196" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.20is.20awesome!.html#197801196">(May 16 2020 at 15:36)</a>:</h4>
<p>That is with:</p>
<div class="codehilite"><pre><span></span><code>    &quot;rust-analyzer.rustfmt.overrideCommand&quot;: [
        &quot;./build/x86_64-unknown-linux-gnu/stage0/bin/rustfmt&quot;
    ],
</code></pre></div>


<p>It clearly is there and seems to work though</p>



<a name="197801294"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer%20is%20awesome%21/near/197801294" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.20is.20awesome!.html#197801294">(May 16 2020 at 15:39)</a>:</h4>
<p>Ah, looks like it adjusts the working dir dynamically, so it can't find the command with a relative path</p>
<p><a href="https://github.com/rust-analyzer/rust-analyzer/blob/d51c1f62178c383363a2d95e865131d9a7b969d0/crates/rust-analyzer/src/main_loop/handlers.rs#L651-L655">https://github.com/rust-analyzer/rust-analyzer/blob/d51c1f62178c383363a2d95e865131d9a7b969d0/crates/rust-analyzer/src/main_loop/handlers.rs#L651-L655</a></p>
<p>Specifying an absolute path works</p>



<a name="197802424"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer%20is%20awesome%21/near/197802424" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Dylan MacKenzie (ecstatic-morse) <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.20is.20awesome!.html#197802424">(May 16 2020 at 16:04)</a>:</h4>
<p><span class="user-mention silent" data-user-id="211727">Jonas Schievink</span> <a href="#narrow/stream/122651-general/topic/rust-analyzer.20is.20awesome!/near/197801294">said</a>:</p>
<blockquote>
<p>Ah, looks like it adjusts the working dir dynamically, so it can't find the command with a relative path</p>
<p><a href="https://github.com/rust-analyzer/rust-analyzer/blob/d51c1f62178c383363a2d95e865131d9a7b969d0/crates/rust-analyzer/src/main_loop/handlers.rs#L651-L655">https://github.com/rust-analyzer/rust-analyzer/blob/d51c1f62178c383363a2d95e865131d9a7b969d0/crates/rust-analyzer/src/main_loop/handlers.rs#L651-L655</a></p>
<p>Specifying an absolute path works</p>
</blockquote>
<p>Literally was just scratching my head about this.</p>



<a name="197802448"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer%20is%20awesome%21/near/197802448" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Dylan MacKenzie (ecstatic-morse) <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.20is.20awesome!.html#197802448">(May 16 2020 at 16:05)</a>:</h4>
<p><span class="user-mention" data-user-id="211727">@Jonas Schievink</span>  Do you want to fix this/submit an issue? Otherwise I'll do it.</p>



<a name="197802534"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer%20is%20awesome%21/near/197802534" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.20is.20awesome!.html#197802534">(May 16 2020 at 16:07)</a>:</h4>
<p>You mean on rust-analyzer? It seems to be doing this on purpose</p>



<a name="197802540"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer%20is%20awesome%21/near/197802540" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.20is.20awesome!.html#197802540">(May 16 2020 at 16:07)</a>:</h4>
<p>I think it might be necessary to configure the working directory for some of rustfmt's features to work</p>



<a name="197802581"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer%20is%20awesome%21/near/197802581" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.20is.20awesome!.html#197802581">(May 16 2020 at 16:08)</a>:</h4>
<p>in particular iirc rustfmt does support "crate wide" formatting</p>



<a name="197802592"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer%20is%20awesome%21/near/197802592" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.20is.20awesome!.html#197802592">(May 16 2020 at 16:08)</a>:</h4>
<p>or perhaps it'll fail to parse the file without this if the file contains <code>include_str!</code> with a relative path, for example</p>



<a name="197802624"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer%20is%20awesome%21/near/197802624" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Dylan MacKenzie (ecstatic-morse) <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.20is.20awesome!.html#197802624">(May 16 2020 at 16:09)</a>:</h4>
<p>I was thinking you would first normalize the executable path to the workspace directory when you get a <code>RustfmtConfig::CustomCommand</code></p>



<a name="197802633"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer%20is%20awesome%21/near/197802633" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Dylan MacKenzie (ecstatic-morse) <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.20is.20awesome!.html#197802633">(May 16 2020 at 16:09)</a>:</h4>
<p>Not that you would stop setting <code>current_dir</code></p>



<a name="197802685"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer%20is%20awesome%21/near/197802685" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.20is.20awesome!.html#197802685">(May 16 2020 at 16:10)</a>:</h4>
<p>Yeah that could work here. What happens when you normalize a path like <code>rustfmt</code>, without any other elements? Does it stay as-is?</p>



<a name="197802697"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer%20is%20awesome%21/near/197802697" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.20is.20awesome!.html#197802697">(May 16 2020 at 16:11)</a>:</h4>
<p>hm normalizing would definitely leave it is as is, not sure what canonicalization does</p>



<a name="197802703"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer%20is%20awesome%21/near/197802703" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.20is.20awesome!.html#197802703">(May 16 2020 at 16:11)</a>:</h4>
<p>it might try to resolve with respect to current directory of the process?</p>



<a name="197802808"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer%20is%20awesome%21/near/197802808" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Dylan MacKenzie (ecstatic-morse) <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.20is.20awesome!.html#197802808">(May 16 2020 at 16:14)</a>:</h4>
<p>You would need to look for "path-like" things I guess, much like the shell does (hence why you have to write <code>./x.py</code> and not <code>x.py</code>)</p>



<a name="197803421"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer%20is%20awesome%21/near/197803421" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Dylan MacKenzie (ecstatic-morse) <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.20is.20awesome!.html#197803421">(May 16 2020 at 16:30)</a>:</h4>
<p>I'll submit a PR over there.</p>



<a name="197805474"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer%20is%20awesome%21/near/197805474" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.20is.20awesome!.html#197805474">(May 16 2020 at 17:18)</a>:</h4>
<p>having to use absolute paths would be a shame as then I couldnt share the settings between my 3 rustc worktrees any more</p>



<a name="197805476"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer%20is%20awesome%21/near/197805476" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.20is.20awesome!.html#197805476">(May 16 2020 at 17:18)</a>:</h4>
<p>so thanks for bringing this up upstream :)</p>



<a name="197812867"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer%20is%20awesome%21/near/197812867" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.20is.20awesome!.html#197812867">(May 16 2020 at 20:14)</a>:</h4>
<p>Hm well we update the rustfmt version very rarely - I think twice so far? - so you probably could</p>



<a name="197837528"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer%20is%20awesome%21/near/197837528" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.20is.20awesome!.html#197837528">(May 17 2020 at 08:27)</a>:</h4>
<p>in that case <code>rustfmt +nightly</code> will probably also do it I guess?^^<br>
I had to disable format-on-save now though because it also formats the test suite, breaking some tests...</p>



<a name="197838649"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer%20is%20awesome%21/near/197838649" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.20is.20awesome!.html#197838649">(May 17 2020 at 09:00)</a>:</h4>
<p>Also it keeps telling me that there are too many files to be watched. are there some other folders besides llvm-project and build that I could exclude?</p>



<a name="197839903"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rust-analyzer%20is%20awesome%21/near/197839903" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rust-analyzer.20is.20awesome!.html#197839903">(May 17 2020 at 09:32)</a>:</h4>
<p>You could exclude <code>src/doc</code> and the things in <code>src/tools</code> that you don't care about. Another big contributor is the <code>src/test</code> dir.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>